
声明 模块 "trace_events" {
    /**
     * The `Tracing` object is used to enable or disable tracing for sets of
     * categories. Instances are created using the
     * `trace_events.createTracing()` method.
     *
     * When created, the `Tracing` object is disabled. Calling the
     * `tracing.enable()` method adds the categories to the set of enabled trace
     * event categories. Calling `tracing.disable()` will remove the categories
     * from the set of enabled trace event categories.
     */

    //@@{ 跟踪中_:Tracing }
    导出 接口 跟踪中_ {
        /**
         * A comma-separated list of the trace event categories covered by this
         * `Tracing` object.
         */

        //@@{ 类别:categories }
        只读 类别: 文字;

        /**
         * Disables this `Tracing` object.
         *
         * Only trace event categories _not_ covered by other enabled `Tracing`
         * objects and _not_ specified by the `--trace-event-categories` flag
         * will be disabled.
         */

        //@@{ 禁用:disable }
        禁用(): 无值;

        /**
         * Enables this `Tracing` object for the set of categories covered by
         * the `Tracing` object.
         */

        //@@{ 启用:enable }
        启用(): 无值;

        /**
         * `true` only if the `Tracing` object has been enabled.
         */

        //@@{ 启用的:enabled }
        只读 启用的: 真假;
    }

    //@@{ 创建跟踪选项_:CreateTracingOptions }
    接口 创建跟踪选项_ {
        /**
         * An array of trace category names. Values included in the array are
         * coerced to a string when possible. An error will be thrown if the
         * value cannot be coerced.
         */

        //@@{ 类别:categories }
        类别: 文字[];
    }

    /**
     * Creates and returns a Tracing object for the given set of categories.
     */

    //@@{ 创建跟踪:createTracing, 创建跟踪选项_:CreateTracingOptions, 跟踪中_:Tracing }
    导出 函数 创建跟踪(选项组: 创建跟踪选项_): 跟踪中_;

    /**
     * Returns a comma-separated list of all currently-enabled trace event
     * categories. The current set of enabled trace event categories is
     * determined by the union of all currently-enabled `Tracing` objects and
     * any categories enabled using the `--trace-event-categories` flag.
     */

    //@@{ 获取启用类别:getEnabledCategories }
    导出 函数 获取启用类别(): 文字;
}
